package com.emergency.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by 92924 on 2020/3/9.
 * 想定文件类
 * */
@Entity
@Table(name="bus_scenar_radiation")
public class ScenarRadiation extends BaseEntity{

    /**类型*/
    private String type;

    /**原想信息*/
    private String thought;


    /**想定*/
    @JsonIgnore
    @OneToOne(targetEntity=Scenar.class,fetch= FetchType.EAGER)
    @JoinColumn(name="scenar_id",referencedColumnName="id")
    private Scenar scenar;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getThought() {
        return thought;
    }

    public void setThought(String thought) {
        this.thought = thought;
    }

    public Scenar getScenar() {
        return scenar;
    }

    public void setScenar(Scenar scenar) {
        this.scenar = scenar;
    }
}
